//
//  LEHeader.h
//  LoveExpressBusiness
//
//  Created by 刘甲奇 on 2017/5/9.
//  Copyright © 2017年 DFH. All rights reserved.
//

#ifndef LEHeader_h
#define LEHeader_h

#endif /* LEHeader_h */

#ifdef DEBUG
#define LELog(...) NSLog(__VA_ARGS__)
#else
#define LELog(...)
#endif

//定义一个打印函数的常量
#define funcLog LELog(@"%s",__func__)

/*
 一.关于颜色
 
 */
#define LERGBColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define LEHaxColor(f) [UIColor colorWithRed:(((f) >> 16) & 0x0000ff) / 255.0 green:(((f) >> 8) & 0x0000ff) / 255.0 blue:(((f)) & 0x0000ff) / 255.0 alpha:1.0]

#define LEHaxColorWithAlpha(f,a) [UIColor colorWithRed:(((f) >> 16) & 0x0000ff) / 255.0 green:(((f) >> 8) & 0x0000ff) / 255.0 blue:(((f)) & 0x0000ff) / 255.0 alpha:a]

#define LEDefaultColor LEHaxColor(0x1b82d2)
#define randomColor LERGBColor((arc4random_uniform(256)),(arc4random_uniform(256)),(arc4random_uniform(256)))
//蓝色
#define LEBlueColor LEHaxColor(0x1e90ff)
#define LESystemBlueColor LEHaxColor(0x0975FF)
//线的颜色
#define LELineColor LEHaxColor(0xe1e1e1)
//背景色
#define LEBackgroundColor LEHaxColor(0xf1f1f1)

//红色
#define LERedColor LEHaxColor(0xff0000)
//紫色
#define LEPurpleColor LEHaxColor(0x8a2be2)
//浅蓝
#define LEShadowBlueColor LEHaxColor(0x6495ed)
//浅黄
#define LEShadowYellowColor LEHaxColor(0xffa500)

/*
 二. 尺寸
 */
#define LEScreenWidth [UIScreen mainScreen].bounds.size.width
#define LEScreenHeight [UIScreen mainScreen].bounds.size.height

#define statusBarH 20
#define navigationBarH 50
#define margin 10
#define leftMargin 15

#define iPhone5W 375.0
#define iPhone5H 667.0

#define ScaleX LEScreenWidth / iPhone5W
#define ScaleY LEScreenHeight / iPhone5H

#define LineX(l) l*ScaleX
#define LineY(l) l*ScaleY
#define Font(x) [UIFont systemFontOfSize:x*ScaleX]

//2.2 类导航 header 等高度
#define BackGoodsDeatailHeaderH 244
#define SectionHeader 65
#define pageTitleViewH 44
#define homeBarH 43

/*
 三: 全局文字
 
 */
#define CoLEonFont [UIFont systemFontOfSize:17]
#define SmallFont [UIFont systemFontOfSize:15]
#define LittleFont [UIFont systemFontOfSize:13]

/*
 四:  appkey
*/
//友盟 appkey
#define USHARE_APPKEY @"5919797e5312ddbf8b0018af"
//SMS
#define SMS_APP_KEY @"1db7292d5ff36"
#define SMS_APP_SECRET @"dffca8be4a8e9d1c260c559c775e2b23"
//JPush
#define JPush_APP_KEY @"05a0cdad7c0977e9f767a0a3"

/*
 五:  存储常量
 */
//是否自动抢单
#define Store_Info @"storeInfo.plist"
//极光的唯一 ID
#define RegisterJPushId @"JPushId"
//选择地图
#define SAVE_LOCATION @"saveLocation"
//记住密码
#define IS_REMEMBER @"isRemember"

/*
 六:  通知常量
 */
#define Select_GoodsCategory_Notification @"GoodsCategory"
#define AddGoods_Check_Notification @"addGoodsCheck"
#define AddGoods_Storage_Notification @"addGoodsStorage"
#define SELECT_LOCATION_NOTIFICATION @"selectLocation"
#define EXPLAIN_COMMIT_NOTIFICATION @"explainCommit"
#define REMARK_NOTIFICATION @"remarkNotification"

/*
 六: 路径
*/
#define RootUrl @"http://124.128.62.78:8089/shop_jn/mobile/index.php?"

//登录
#define LoginUrl [NSString stringWithFormat:@"%@act=store_login",RootUrl]
//忘记密码
#define LoginForgetPasswordUrl [NSString stringWithFormat:@"%@act=password_back&op=store_back",RootUrl]
//注册极光
#define RegisterJPushUrl [NSString stringWithFormat:@"%@act=store_order&op=store_edit",RootUrl]



//首页-订单量
#define StoreOrderUrl [NSString stringWithFormat:@"%@act=store_order&op=count_order",RootUrl]
//首页-七天营业额
#define StoreSaleUrl [NSString stringWithFormat:@"%@act=store_order&op=store_sales",RootUrl]
//首页-我的订单(index)
#define StoreMyordereUrl [NSString stringWithFormat:@"%@act=store_order&op=orders_count",RootUrl]
//首页-我的订单-自动派单act=store_order&op=store_edit
#define StoreAutoSendOrderUrl [NSString stringWithFormat:@"%@act=store_order&op=store_edit",RootUrl]
//首页-订单中心
#define StoreOrderCenterUrl [NSString stringWithFormat:@"%@act=store_order&op=order_list",RootUrl]
//首页-订单中心-订单的所有服务人员
#define StoreOrderStaffsUrl [NSString stringWithFormat:@"%@act=store_order&op=show_order",RootUrl]
//首页-订单中心-订单的指派服务人员
#define StoreOrderAssignStaffsUrl [NSString stringWithFormat:@"%@act=store_order&op=order_assign",RootUrl]
//首页-我的商品列表
#define StoreGoodsListUrl [NSString stringWithFormat:@"%@act=store_goods&op=goods_list",RootUrl]
//首页-选择商品种类
#define StoreSelectGoodsCategoryUrl [NSString stringWithFormat:@"%@act=store_goods&op=goods_class",RootUrl]
//首页-上传商品图片
#define StoreUploadGoodsImageUrl [NSString stringWithFormat:@"%@act=store_goods&op=image_upload",RootUrl]
//首页-添加商品
#define StoreAddGoodsUrl [NSString stringWithFormat:@"%@act=store_goods&op=goods_add",RootUrl]
//首页-编辑商品
#define StoreEditGoodsUrl [NSString stringWithFormat:@"%@act=store_goods&op=goods_edit",RootUrl]
//首页-订单统计
#define StoreStatisticsUrl [NSString stringWithFormat:@"%@act=store_order&op=store_sales",RootUrl]
//首页-订单统计-折线图
#define StoreStatisticsLineUrl [NSString stringWithFormat:@"%@act=store_order&op=sales_info",RootUrl]
//首页-商品下架
#define StoreGoodsHiddenUrl [NSString stringWithFormat:@"%@act=store_goods&op=goods_unshow",RootUrl]
//首页-商品上架
#define StoreGoodsShowUrl [NSString stringWithFormat:@"%@act=store_goods&op=goods_show",RootUrl]
//首页-删除商品
#define StoreGoodsDeleteUrl [NSString stringWithFormat:@"%@act=store_goods&op=drop_goods",RootUrl]
//首页-请求商品的详情
#define StoreGoodsDetialUrl [NSString stringWithFormat:@"%@act=store_goods&op=goods_info",RootUrl]

//员工管理

//员工列表
#define StaffListUrl [NSString stringWithFormat:@"%@act=store_service&op=service_list",RootUrl]
//员工详情
#define StaffDetailUrl [NSString stringWithFormat:@"%@act=store_service&op=service_info",RootUrl]
//改变员工的角色
#define StaffChangeRolelUrl [NSString stringWithFormat:@"%@act=store_service&op=edit_service",RootUrl]
//删除员工
#define StaffRemoveStafflUrl [NSString stringWithFormat:@"%@act=store_service&op=service_relieve",RootUrl]

//服务管理

//绩效排名
#define ServiceScoreRankUrl [NSString stringWithFormat:@"%@act=achievements&op=service_score_rank",RootUrl]
//派送排名
#define ServiceOrderRankUrl [NSString stringWithFormat:@"%@act=achievements&op=store_service_rank",RootUrl]
//评价管理
#define ServiceCommitListUrl [NSString stringWithFormat:@"%@act=complaint_evaluation&op=evaluation_list",RootUrl]
//解释的路径
#define ServiceExplainCommitListUrl [NSString stringWithFormat:@"%@act=complaint_evaluation&op=goods_explanation",RootUrl]

//投诉列表
#define ServiceReplyListUrl [NSString stringWithFormat:@"%@act=complaint_evaluation&op=complaint_list",RootUrl]
//申诉
#define ServiceReplyUrl [NSString stringWithFormat:@"%@act=complaint_evaluation&op=complaint_handle",RootUrl]

//个人中心
//保存商店信息
#define OwnSaveStoreInfoUrl [NSString stringWithFormat:@"%@act=store_order&op=store_edit",RootUrl]
//上传商店头像
#define OwnUploadStoreImageUrl [NSString stringWithFormat:@"%@act=store_goods&op=store_logo_upload",RootUrl]
//修改密码
#define OwnResetPasswordUrl [NSString stringWithFormat:@"%@act=store_logout&op=password_edit",RootUrl]






